-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix handling of the undefined host type for stream errors #4052
Conversation
Stream errors are often sent before the host type is known. The 'host_type' in the c2s state is then undefined, not '<<>>'. By fixing this line: - There are no more errors in the logs about running hooks for undefined host type. - The line should be covered by the tests now.
small_tests_25_arm64 / small_tests / 3f3dae4 small_tests_24 / small_tests / 3f3dae4 small_tests_25 / small_tests / 3f3dae4 ldap_mnesia_24 / ldap_mnesia / 3f3dae4 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 3f3dae4 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 3f3dae4 ldap_mnesia_25 / ldap_mnesia / 3f3dae4 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 3f3dae4 dynamic_domains_mysql_redis_25 / mysql_redis / 3f3dae4 pgsql_mnesia_24 / pgsql_mnesia / 3f3dae4 elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 3f3dae4 internal_mnesia_25 / internal_mnesia / 3f3dae4 pubsub_SUITE:tree+node_config:notify_only_available_users_test{error,{{badmatch,false},
[{pubsub_tools,check_response,2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,434}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,424}]},
{pubsub_SUITE,'-notify_only_available_users_test/1-fun-0-',2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_SUITE.erl"},
{line,847}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} mysql_redis_25 / mysql_redis / 3f3dae4 pgsql_mnesia_25 / pgsql_mnesia / 3f3dae4 mssql_mnesia_25 / odbc_mssql_mnesia / 3f3dae4 internal_mnesia_25 / internal_mnesia / 3f3dae4 |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #4052 +/- ##
=======================================
Coverage 83.80% 83.80%
=======================================
Files 526 526
Lines 33129 33129
=======================================
+ Hits 27764 27765 +1
+ Misses 5365 5364 -1
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Stream errors are often sent before the host type is known. The
host_type
in the c2s state is then undefined, not<<>>
.Because of this bug, the following errors could be seen in the logs:
By fixing this line: